package com.longai.vo;

import com.longai.model.Moment;

public class MomentVo {
    private Integer momentId;
	private String nickName;
	private long pubTime;
	private Integer userId;
    private String content;
    
    public MomentVo(){
    	
    }
    
    public MomentVo(Moment moment){
   
    	this.momentId = moment.getMomentId();
    	this.nickName = moment.getUser().getNickname();
    	this.pubTime = moment.getMomentPubtime();
    	this.userId = moment.getUser().getUserId();
    	this.content = moment.getMomentContent();
    }
    
	public Integer getMomentId() {
		return momentId;
	}
	public void setMomentId(Integer momentId) {
		this.momentId = momentId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public long getPubTime() {
		return pubTime;
	}
	public void setPubTime(long pubTime) {
		this.pubTime = pubTime;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

}